package com.mycode.builder06.resolve;

/**
 * 简化系统结构，将 控制器和抽象建造者进行合并，在建造者提供逐步构建复杂产品对象的 construct()
 */
public abstract class SimpleActorBuilder2 {

    protected static Actor actor = new Actor();

    public abstract void buildType();
    public abstract void buildSex();
    public abstract void buildFace();
    public abstract void buildCostume();
    public abstract void buildHairstyle();

    public Actor construct() {
        this.buildType();
        this.buildSex();
        this.buildFace();
        this.buildCostume();
        this.buildHairstyle();
        return actor;
    }
}
